
/* JavaScript content from js/eventlist.js in folder common */
/**
 * 
 */
var myBusyIndicator = new WL.BusyIndicator('main',{text : "waiting..."});

/**
 * initialize the book list
 */
function initializePage() {
	getEventlistSuccess({});
}

/**
 * get history book success, initialize the page according to the result
 */
function getEventlistSuccess(result) {
//	myBusyIndicator.hide();
	var testData = [ {
		'src' : '../images/1.gif',
		'time' : '1',
		'address' : 'shanghaizhangjiang',
		'content' : 'the biggest show will hold at the gym',
	}, {
		'src' : '../images/1.gif',
		'time' : '1',
		'address' : 'shanghaizhangjiang',
		'content' : 'the biggest show will hold at the gym',
	}];
	$.each(testData, function(i, item) {
		var itemContent = "<div><img src='" + item.src + "' width='14px' height='14px'>";
		
		itemContent = itemContent.concat("<div class='bookItem'><div class='leftCommon boldFont'>");
		
		itemContent = itemContent.concat(item.content);
		itemContent = itemContent.concat("</div></div><p style='clear: both'></p>");
		itemContent = itemContent.concat("<div class='leftCommon'>");
		
		itemContent = itemContent.concat("</div><p style='clear: both'></p>");
		itemContent = itemContent.concat("<div class='leftCommon smallFont grayFont'>" + item.address + "</div>");
		itemContent = itemContent.concat("<div class='leftCommon smallFont grayFont'>" + item.time + "</div>");
		itemContent = itemContent.concat("<p style='clear: both'></p></div>");
		
		$(itemContent).appendTo($("#eventist"));
	});
	
}